﻿using System.Collections.Generic;

namespace Sustainalytics.ESGRatings.Service.Models.DTOs.RpIndicators
{
    public class EsgRpControversyDto
    {
        public EsgRpControversyLevelEnum ControversyLevel { get; set; }        
        public IEnumerable<EsgRpControversyEventIndicatorDto> EventIndicators { get; set; }
        public EsgRpIndicatorOutlookTypeEnum? OutlookType { get; set; }

        public string ControversyLevelName
        {
            get
            {
                switch (ControversyLevel)
                {
                    case EsgRpControversyLevelEnum.Low:
                        return "Low";
                    case EsgRpControversyLevelEnum.Moderate:
                        return "Moderate";
                    case EsgRpControversyLevelEnum.High:
                        return "High";
                    case EsgRpControversyLevelEnum.Severe:
                        return "Severe";
                    case EsgRpControversyLevelEnum.Significant:
                        return "Significant";
                }

                return null;
            }
        }
        public string OutlookTypeName
        {
            get
            {
                switch (OutlookType)
                {
                    case EsgRpIndicatorOutlookTypeEnum.Negative:
                        return "Negative";
                    case EsgRpIndicatorOutlookTypeEnum.Neutral:
                        return "Neutral";
                    case EsgRpIndicatorOutlookTypeEnum.Positive:
                        return "Positive";
                }

                return null;
            }
        }
    }
}
